package com.lld.im.common.enums;

import com.lld.im.common.exception.ApplicationExceptionEnum;

public enum MessageErrorCodeEnum implements ApplicationExceptionEnum {



    FROMER_IS_MUTE(50002,"发送方被禁言"),

    FROMER_IS_FORBIBBEN(50003,"发送方被禁用"),

    FRIEND_IS_DELETED(50006,"好友已被删除"),
    FRIEND_IS_BLACK(50007,"好友已被拉黑"),

    YOU_IS_DELETE(50008,"你被好友删除"),
    YOU_IS_BLACK(50009,"你被好友拉黑"),


    MESSAGEBODY_IS_NOT_EXIST(50001,"消息体不存在"),

    MESSAGE_RECALL_TIME_OUT(50004,"消息已超过可撤回时间"),

    MESSAGE_IS_RECALLED(50005,"消息已被撤回"),

    TARGET_USER_UNEXACTING(50010,"接收方不存在"),

    ;

    private int code;
    private String error;

    MessageErrorCodeEnum(int code, String error){
        this.code = code;
        this.error = error;
    }
    public int getCode() {
        return this.code;
    }

    public String getError() {
        return this.error;
    }

}
